import request from '@/utils/request'


export default{
    // 渠道列表
    channelList(page, size,searchMap) {
        return request({
            url: `manage/merchant/merchant/merchantList?page=${page}&size=${size}`,
            method: 'post',
            data: searchMap
        })
    },
    // 保存渠道
    saveChannel(data) {
        return request({
            url: `manage/merchant/merchant/save`,
            method: 'post',
            data: data
        })
    },
    // 渠道详情
    channelDetail(id) {
        return request({
            url: `manage/merchant/merchant/detail?id=${id}`,
            method: 'post',
        })
    },
    // 特殊商品列表
    specialSet(page, size, id,title) {
        return request({
            url: `manage/merchant/merchant/goodsList?page=${page}&size=${size}&mid=${id}&keyword=${title}`,
            method: 'post'
        })
    },
    // 保存特殊商品
    saveSet(data) {
        return request({
            url: `manage/merchant/merchant/systemGoods`,
            method: 'post',
            data: data
        })
    },
    // 禁用启用
    disabledChannel(id,status){
        return request({
            url: `manage/merchant/merchant/changeStatus?id=${id}&status=${status}`,
            method: 'post',
        })
    },
    //发票详情
    InvoiceDetails(data) {
        return request({
            url: `manage/settle/invoice/detail`,
            method: 'post',
            data: data
        })
    },
    //发票修改
    InvoiceModification(data) {
        return request({
            url: `manage/settle/invoice/edit`,
            method: 'post',
            data: data
        })
    }
}
